From 717762f5b3424632f58a5e4e2f0f7619c0b3fec9 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 12 Oct 2002 23:30:22 +0000 Subject: [PATCH] (dired-insert-directory): When looking for existing indentation, goto OPOINT instead of beginning of buffer. --- lisp/dired.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/dired.el b/lisp/dired.el index 6aebd08d487..e26447fbd2f 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -701,7 +701,7 @@ If HDR is non-nil, insert a header line with the directory name." ;; If we used --dired and it worked, the lines are already indented. ;; Otherwise, indent them. (unless (save-excursion - (beginning-of-buffer) + (goto-char opoint) (looking-at " ")) (let ((indent-tabs-mode nil)) (indent-rigidly opoint (point) 2))) -- 2.30.2